<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="css/bootstrap.min.css"/>
    <style>
        body{
            background-color: #f5c6cb;
        }
        #regDiv{
            margin: 80px auto;/*设置DIV居中显示*/
            width: 600px;
            height: 700px;
            border: 1px solid #f1b0b7;
            padding:10px;
            border-radius: 3%;
            background-color:#d1ecf1;

            box-shadow: 10px 10px 10px #adb5bd;
        }
    </style>
</head>
<body>
<div id="regDiv">
    <h2 align="center">用户注册</h2>
    <form id="regForm" action="register.do" method="post">
        <div class="form-group">
            <label>用户名</label>
            <input type="text" class="form-control" name="user_name"/>
        </div>

        <div class="form-group">
            <label>密码</label>
            <input type="password" class="form-control" name="user_password"/>
        </div>

        <div class="form-group">
            <label>性别</label>
            <div class="form-group">
                <div class="custom-control custom-radio custom-control-inline">
                    <input type="radio" id="customRadioInline1" name="user_sex" value="1" class="custom-control-input">
                    <label class="custom-control-label" for="customRadioInline1">男</label>
                </div>
                <div class="custom-control custom-radio custom-control-inline">
                    <input type="radio" id="customRadioInline2" name="user_sex" value="0" class="custom-control-input">
                    <label class="custom-control-label" for="customRadioInline2">女</label>
                </div>
            </div>
        </div>

        <div class="form-group">
            <label>E-mail</label>
            <input type="email" class="form-control" name="user_email"/>
        </div>

        <div class="form-group">
            <label>出生日期</label>
            <input type="date" class="form-control" name="user_birthday"/>
        </div>

        <div class="form-group">
            <label>爱好</label>
            <div class="form-group row">
                <div class="custom-control custom-switch ml-3">
                    <input type="checkbox" value="纯牛奶" class="custom-control-input" name="user_hobbys" id="customSwitch1">
                    <label class="custom-control-label" for="customSwitch1">纯牛奶</label>
                </div>

                <div class="custom-control custom-switch ml-3">
                    <input type="checkbox" value="酸牛奶" class="custom-control-input" name="user_hobbys" id="customSwitch2">
                    <label class="custom-control-label" for="customSwitch2">酸牛奶</label>
                </div>

                <div class="custom-control custom-switch ml-3">
                    <input type="checkbox" value="风味发酵乳" class="custom-control-input" name="user_hobbys" id="customSwitch3">
                    <label class="custom-control-label" for="customSwitch3">风味发酵乳</label>
                </div>
            </div>
        </div>

        <div class="form-group">
            <label>地址</label>
            <input type="text" class="form-control" name="user_address"/>
        </div>



        <button type="submit" class="btn btn-primary btn-lg btn-block">用户注册</button>
    </form>
</div>


<script src="js/jquery-3.4.1.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>